import QtQuick 2.5
import QtQuick.Controls 1.4
import QtQuick.Controls 2.2

ApplicationWindow {
    title: qsTr("报告生成器")
    width: 1280
    height: 720
    visible: true
    
    Rectangle {

        id: rectTop
        anchors.left: parent.left
        anchors.top: parent.top
        anchors.right: parent.right
        height: 40
        anchors.margins: 5
        border {
            width : 2
            color : 'gray'        
        }
    }

    Rectangle {

        id: rectCatalog
        anchors.left: parent.left
        anchors.top: rectTop.bottom
        anchors.bottom: parent.bottom
        width: 200
        anchors.margins: 5
        border {
            width : 2
            color : 'gray'        
        }

        TreeView {    

            id: catalog
            anchors.fill: parent
            model: modelCatalog
            rootIndex: rootPathIndex

            TableViewColumn {
                title: "Name"
                role: "fileName"
                resizable: true
            }
        }
    }

    Rectangle {

        id: rectParam
        anchors.left: rectCatalog.right
        anchors.top: rectTop.bottom
        anchors.right: parent.right
        height: 100
        anchors.margins: 5
        border {
            width : 2
            color : 'gray'        
        }
    }

    Rectangle {

        id: rectDisplay
        anchors.left: rectCatalog.right
        anchors.top: rectParam.bottom
        anchors.right: parent.right
        anchors.bottom: parent.bottom
        anchors.margins: 5
        border {
            width : 2
            color : 'gray'        
        }
    }
}